package cn.tedu._05mvcboot01.pojo.dto;

public class BMIDTO {
    private  double weight;
    private  double height;
    private  double bmi = weight / (height * height);

    @Override
    public String toString() {
        return "BMIDTO{" +
                "weight=" + weight +
                ", height=" + height +
                ", bmi=" + bmi +
                '}';
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getBmi() {
        return bmi;
    }

    public void setBmi(double bmi) {
        this.bmi = bmi;
    }
}
